package com.any.hook.core.webapi.entity;

public class Result {
    public Integer status;
    public Object result;
    public String message;

    public Result(Integer status, Object result, String message) {
        this.status = status;
        this.result = result;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static Result ERRORRESULT(String message){
        return new Result(0,null,message);
    }
    public static Result SUSSRESULT(Object result,String message){
        return new Result(1,result,message);
    }
    public static Result SUSSRESULT(Object result){
        return SUSSRESULT(result,null);
    }
    public static Result SUSSRESULT(){
        return SUSSRESULT(null,null);
    }
}
